#pragma once
#include <Component.hpp>

class Button:
    public Component
{
private:
    char* text = nullptr;
public:
    Button(const char* text, SDL_Point pos);
    ~Button();
    virtual void mouseEnter(SDL_MouseMotionEvent &evt);
    virtual void mouseLeave(SDL_MouseMotionEvent &evt);
    virtual void mousePress(SDL_MouseButtonEvent &evt);
    virtual void mouseRelease(SDL_MouseButtonEvent &evt);
    virtual void mouseClick(SDL_MouseButtonEvent &evt);
    virtual void render(SDL_Renderer* render);
    void setText(const char* text);
    const char* getText();
};